<template>
  <div>
     <div v-text="data"></div>
     <div v-html="target"></div>
   </div>
</template>
 
<script>
export default {
  data() {
    return {
      data:'我是text',
      target:'<span>我是html</span>',
    };
  },
  methods: {}
};
</script>

<style scoped>
     
</style>